package com.qzsoft.system.modules.permission.user.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author yzz
 * @date 2020/6/10 14:23
 * @describe 用户类型dto
 */
@ApiModel(value ="")
@Data
@EqualsAndHashCode(callSuper=false)
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ToString
public class UserTypeDTO {

    /**
     * 用户
     */
    public static final String CHOOSE_USER = "choose_user";
    /**
     * 岗位
     */
    public static final String CHOOSE_POST = "choose_post";
    /**
     * 部门
     */
    public static final String CHOOSE_DEPT = "choose_dept";

    @ApiModelProperty(name = "类型，可选值有choose_user(用户)、choose_post(岗位)、choose_dept(组织ID)", example = "choose_user")
    private String approvalType;

    @ApiModelProperty(name = "用户账号/岗位ID/组织ID", example = "1")
    private String approvalValue;

    @ApiModelProperty(name = "用户姓名/岗位名称/组织名称", example = "admin")
    private String approvalName;

}
